﻿using System;
using System.IO;
using Microsoft.TeamFoundation.VersionControl.Client;

namespace TfsGiggle.Core.Tfs.Implementation
{
    class ItemImpl : IItem
    {
        private Item _item;
        private IVersionControlServer _versionControlServer;

        public ItemImpl(IVersionControlServer versionControlServer, Item item)
        {
            _item = item;
            _versionControlServer = versionControlServer;
        }

        public int ChangesetId
        {
            get { return _item.ChangesetId; }
        }


        public Stream DownloadFile()
        {
            return _item.DownloadFile();
        }


        public int Encoding
        {
            get { return _item.Encoding; }
        }


        public string ServerItem
        {
            get { return _item.ServerItem; }
        }


        public DateTime CheckinDate
        {
            get { return _item.CheckinDate; }
        }


        public IVersionControlServer VersionControlServer
        {
            get { return _versionControlServer; }
        }
    }
}
